import request from '@/utils/request'

// 查询客户赔率关联列表
export function listOdds(query) {
  return request({
    url: '/financial/odds/list',
    method: 'get',
    params: query
  })
}

export function custOddsList(custId) {
  return request({
    url: '/financial/odds/custOddsList/'+custId,
    method: 'get',
  })
}

// 查询客户赔率关联详细
export function getOdds(id) {
  return request({
    url: '/financial/odds/' + id,
    method: 'get'
  })
}

// 新增客户赔率关联
export function addOdds(data) {
  return request({
    url: '/financial/odds',
    method: 'post',
    data: data
  })
}

// 修改客户赔率关联
export function updateOdds(data) {
  return request({
    url: '/financial/odds',
    method: 'put',
    data: data
  })
}

// 删除客户赔率关联
export function delOdds(id) {
  return request({
    url: '/financial/odds/' + id,
    method: 'delete'
  })
}
